<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
  <head>
   	
  	<%@ include file="/WEB-INF/include/meta.jsp" %>
  	<%@ include file="/WEB-INF/include/css.jsp" %>
	
	<title>注册成功 - 众投湾</title>
	
	<fmt:setBundle basename="ApplicationMessage"/>
	<fmt:setLocale value="zh_CN"/>
	
  </head>

  <body>

	<%@ include file="/WEB-INF/include/header.jsp" %>

    <div class="container clearfix">
    
      <div class="zz-startups">
      
        <form class="zz-center-block-form" action="${ctx}/j_spring_security_check" method="POST" data-validate="true">
          <c:if test="${not empty param.beforeLoginUri }"><input type="hidden" name="beforeLoginUri" value="${param.beforeLoginUri}" /></c:if>

          <div class="zz-form-header clearfix">
            <h2 class="no-bottom-margin">众投湾&nbsp;<small>最专业的股权众筹平台</small></h2>
          </div>

          <hr>
					
		  <c:if test="${not empty errorMessage}">
			<div class="alert alert-danger"><i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<fmt:message key="${errorMessage}" /></div>
		  </c:if>

          <div class="form-group">
            <div class="input-group input-group-lg demo2do-input-group">
              <input type="email" name="j_username" class="form-control zz-form-control" placeholder="登录邮箱" data-validate="required|email">
              <span class="input-group-addon"><span class="glyphicon glyphicon-envelope"></span></span>
            </div>
          </div>

          <div class="form-group">
            <div class="input-group input-group-lg demo2do-input-group">
              <input type="password" name="j_password" class="form-control zz-form-control" placeholder="登录密码" data-validate="required">
              <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
            </div>
          </div>

          <div class="form-group clearfix">
            <div class="checkbox pull-left no-vertical-margin">
              <label>
                <input type="checkbox" name="_spring_security_remember_me">记住帐号
              </label>
            </div>

            <a class="form-control-static pull-right" href="#">忘记密码？</a>
          </div>

          <div class="form-group">
            <button type="submit" class="btn btn-lg btn-success btn-shadow btn-shadow-success demo2do-input-full-width">登&nbsp;&nbsp;录</button>
          </div>

        </form>
      
      </div>

    </div>
    
    <%@ include file="/WEB-INF/include/footer.jsp" %>
	<%@ include file="/WEB-INF/include/script.jsp" %>
	<script src="${ctx.resource}/js/bootstrap.validate.js"></script>
	<script src="${ctx.resource}/js/bootstrap.validate.en.js"></script>
	<script src="${ctx.resource}/js/bootstrap-validate-trigger.js"></script>

    <script>
      $(function() {

        $('.zz-form-control').focus(function(){
          $(this).parent().addClass('active');
        });

        $('.zz-form-control').blur(function(){
          $(this).parent().removeClass('active');
        });
      });
    </script>

  </body>

</html>

